<template>
  <div>
    <h1>当前计数为： {{ count }}</h1>
    <button @click="increment">+1</button>
  </div>
</template>

<script>
import {ref} from 'vue'
export default {
  setup() {
    const count = ref(100)
    const increment = () => {
      return count.value++
    }

    return {
      count,
      increment
    }
  }
}
</script>

<style lang="scss" scoped></style>
